<?php


/**
 * Class corresponsive to mantenimiento 
 * de Obras
 * @author konda
 */
class Obra extends CI_Controller{
    //put your code here
    
    
    public function __construct() {
        parent::__construct();
   
         //library
         $this->load->library('form_validation');
         //helper
         $this->load->helper(array('form','url'));
    
        
    }
    
    public function Index()
    {
        
         ///////////////////////////////////////////////////////
         //Data
         //title page
         $data['title']="Obras";
         $data['view']="v_obra";

         $data['menu_header']   = $this->menu_header();
         $data['menu_left']     = $this->menu_left();
          
         $this->load->view('template/header.php',$data);
         $this->load->view('template/content.php',$data);
         $this->load->view('template/footer.php');

    }
    
    /**
     * Functions of variables
     * 
     */
    
     public function menu_header()
    {
        
       $menu_header= "<div id=\"header\">";
       $menu_header.="<div id=\"list-nav\" class=\"gbes\" >";
       $menu_header.="<ul>";
       $menu_header.="<li>";
       $menu_header.=anchor("proyecto","Proyecto",array('class'=>'active_header'));
       $menu_header.="</li>";
       $menu_header.="<li>";
       $menu_header.=anchor("map","Mapas");
       $menu_header.="</li>";
       $menu_header.="</ul></div>";
       //black header
       $menu_header.="<div class=\"gbx1\">"; 
       $menu_header.="</div></div>";
       
       return $menu_header;
    }
    
    
    public function menu_left()
    {
        $menu_left= "<div id=\"leftCol\">";
        $menu_left.="<ul>";
        $menu_left.="<li>";
        $menu_left.=anchor("proyecto","Proyecto");
        $menu_left.="</li>";
        $menu_left.="<li>";
        $menu_left.=anchor("departamento","Departamento");
        $menu_left.="</li>";
        $menu_left.="<li>";
        $menu_left.=anchor("localidad","Localidad");
        $menu_left.="</li>";
        $menu_left.="<li>";
        $menu_left.=anchor("municipio","Municipio");
        $menu_left.="</li>";
        $menu_left.="<li>";
        $menu_left.=anchor("Obra","Obras",array('class'=>'active_header'));
        $menu_left.="</li>";
        $menu_left.="</ul>";
        $menu_left.="</div>";
        return $menu_left;
              
    }
    
}

?>
